package com.ruoyi.construction.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.construction.mapper.JwMajorConstructionMapper;
import com.ruoyi.construction.domain.JwMajorConstruction;
import com.ruoyi.construction.service.IJwMajorConstructionService;

/**
 * 专业建设情况Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-13
 */
@Service
public class JwMajorConstructionServiceImpl implements IJwMajorConstructionService 
{
    @Autowired
    private JwMajorConstructionMapper jwMajorConstructionMapper;

    /**
     * 查询专业建设情况
     * 
     * @param mcId 专业建设情况主键
     * @return 专业建设情况
     */
    @Override
    public JwMajorConstruction selectJwMajorConstructionByMcId(Long mcId)
    {
        return jwMajorConstructionMapper.selectJwMajorConstructionByMcId(mcId);
    }

    /**
     * 查询专业建设情况列表
     * 
     * @param jwMajorConstruction 专业建设情况
     * @return 专业建设情况
     */
    @Override
    public List<JwMajorConstruction> selectJwMajorConstructionList(JwMajorConstruction jwMajorConstruction)
    {
        return jwMajorConstructionMapper.selectJwMajorConstructionList(jwMajorConstruction);
    }

    /**
     * 新增专业建设情况
     * 
     * @param jwMajorConstruction 专业建设情况
     * @return 结果
     */
    @Override
    public int insertJwMajorConstruction(JwMajorConstruction jwMajorConstruction)
    {
        return jwMajorConstructionMapper.insertJwMajorConstruction(jwMajorConstruction);
    }

    /**
     * 修改专业建设情况
     * 
     * @param jwMajorConstruction 专业建设情况
     * @return 结果
     */
    @Override
    public int updateJwMajorConstruction(JwMajorConstruction jwMajorConstruction)
    {
        jwMajorConstruction.setUpdateTime(DateUtils.getNowDate());
        return jwMajorConstructionMapper.updateJwMajorConstruction(jwMajorConstruction);
    }

    /**
     * 批量删除专业建设情况
     * 
     * @param mcIds 需要删除的专业建设情况主键
     * @return 结果
     */
    @Override
    public int deleteJwMajorConstructionByMcIds(Long[] mcIds)
    {
        return jwMajorConstructionMapper.deleteJwMajorConstructionByMcIds(mcIds);
    }

    /**
     * 删除专业建设情况信息
     * 
     * @param mcId 专业建设情况主键
     * @return 结果
     */
    @Override
    public int deleteJwMajorConstructionByMcId(Long mcId)
    {
        return jwMajorConstructionMapper.deleteJwMajorConstructionByMcId(mcId);
    }
}
